package utils

import "fmt"

func Calc(n1 float64, n2 float64, operaType byte) float64 {

	var res float64
	switch operaType {
	case '+':
		res = n1 + n2
	case '-':
		res = n1 - n2
	case '*':
		res = n1 * n2
	case '/':
		res = n1 / n2
	default:
		fmt.Println("请传入正确的操作符")

	}

	return res
}

func GetVal() int {
	return 3
}
